1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.google.common.base;
18
19 import com.google.common.annotations.GwtCompatible;
20
21 import java.util.Set;
22
23 import javax.annotation.Nullable;
24
25
26
27
28
29
30
31
32
33
34 @GwtCompatible
35 final class GwtSerializationDependencies {
36 private GwtSerializationDependencies() {}
37
38 static final class OptionalDependencies<T> extends Optional<T> {
39 T value;
40
41 OptionalDependencies() {
42 super();
43 }
44
45 @Override public boolean isPresent() {
46 throw new AssertionError();
47 }
48
49 @Override public T get() {
50 throw new AssertionError();
51 }
52
53 @Override public T or(T defaultValue) {
54 throw new AssertionError();
55 }
56
57 @Override public Optional<T> or(Optional<? extends T> secondChoice) {
58 throw new AssertionError();
59 }
60
61 @Override public T or(Supplier<? extends T> supplier) {
62 throw new AssertionError();
63 }
64
65 @Override public T orNull() {
66 throw new AssertionError();
67 }
68
69 @Override public Set<T> asSet() {
70 throw new AssertionError();
71 }
72
73 @Override public <V> Optional<V> transform(
74 Function<? super T, V> function) {
75 throw new AssertionError();
76 }
77
78 @Override public boolean equals(@Nullable Object object) {
79 throw new AssertionError();
80 }
81
82 @Override public int hashCode() {
83 throw new AssertionError();
84 }
85
86 @Override public String toString() {
87 throw new AssertionError();
88 }
89 }
90 }